package fr.istic.linkedcv.client.presentation.views;

import java.util.HashMap;
import java.util.Map;

import com.google.gwt.user.client.ui.Widget;

import fr.istic.linkedcv.client.presentation.Ui;

public abstract class View {
	protected Ui ui;
	protected Map<String,String> properties = new HashMap<String, String>(); 
	
	public View() {	}
	public View(Ui ui){
		this.ui = ui;		
	}

	public void addProperties(Map<String, String> properties) {
		this.properties.putAll(properties);
		
	}
	public void addProperty(String key, String value) {
		this.properties.put(key,value);
		
	}
	
	public abstract void build();
	public abstract Widget getWidget();

}
